package com.choudou5.solr.utils.oauth;

import java.io.Serializable;

/**
 * @name 授权认证
 * @author choudou5
 * @date 2018-7-16
 */
public class OauthBean implements Serializable {

    private String appId;
    private String siteName;
    private String api;
    private String icon;
    private String ak;

    public OauthBean buildSafe(boolean build) {
        if(build){
            OauthBean bean = new OauthBean();
            bean.setAppId(getAppId());
            bean.setSiteName(getSiteName());
            bean.setIcon(getIcon());
            return bean;
        }
        return null;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getSiteName() {
        return siteName;
    }

    public void setSiteName(String siteName) {
        this.siteName = siteName;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getApi() {
        return api;
    }

    public void setApi(String api) {
        this.api = api;
    }

    public String getAk() {
        return ak;
    }

    public void setAk(String ak) {
        this.ak = ak;
    }
}
